<template>
  <div>
    <group v-if='b' label-width="6em" v-for='(item, index) in list' :key="index"  @click.native="details(index)">
      <cell title="申请号：" :value='item.id'></cell>
      <cell title="借领时间：" :value='item.startTime'></cell>
      <cell title="归还时间：" :value='item.endTime'></cell>
      <x-textarea title="用途：" readonly :rows="1" :value='item.purpose'></x-textarea>
      <cell title="详情" is-link ></cell>
    </group>  
  </div>
</template>

<script>
import {Group, Cell, ViewBox, Tab, TabItem, FormPreview, XButton, XTextarea} from 'vux'

export default {
  props: ['list'],
  components: {
    ViewBox,
    XTextarea,
    Tab,
    TabItem,
    Group,
    Cell,
    FormPreview,
    XButton
  },
  data () {
    return {
      b: true
      // show1: true
    }
  },
  methods: {
    details (index) {
      this.$router.push({path: '/Equipdetail', query: { equipid: this.list[index].id }})
    }
  },
  created () {
  }
}
</script>

<style scoped>
.weui-cell {
  border: none ;
  padding: 4px 15px;
}
.weui-cell:before {
  border: none ;
}
</style>
